//
//  Car.m
//  OCDay2
//
//  Created by dllo on 16/5/23.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Car.h"

@implementation Car

-(instancetype)initWithPrice:(CGFloat)price withName:(NSString *)name withNumber:(NSString *)number{
    self = [super init];
    if(self){
        _price = price;
        _name = name;
        _number = number;
    }
    return self;
}


+(instancetype)carWithPrice:(CGFloat)price withName:(NSString *)name withNumber:(NSString *)number{
    Car *car = [[Car alloc]initWithPrice:price withName:name withNumber:number];
    
    return car;
}

@end
